<template>
	<view>
		<view class="mdx titles">
			{{dataInfo.titles}}
		</view>
		<view class="mdx u-m-b-20" v-if="dataInfo.address">
			<view>
				<u-icon :label="dataInfo.address" size="40" name="/static/images/addres.png"></u-icon>
			</view>
		</view>
		<view class="mdx u-m-b-20">
			<view class="times">
				{{dataInfo.activitydata}}-{{dataInfo.activitydata1}}
			</view>
		</view>
		<view class="mdx ">
			<u-parse :html="activiny"></u-parse>
		</view>
		<view class="mdx u-flex bmList" v-if="false">
			<view>
				<u-image width="180rpx" border-radius="10rpx" height="180rpx" :src="src"></u-image>
			</view>
			<view class="u-flex-1" style="height: 180rpx; display: flex;flex-direction: column;">
				<view class="u-flex-1">美华裔医护人员感染新冠，病情严重多症状并发，说一...</view>
				<view class="u-flex u-row-right">
					<view style="color: #00A29A;">前往报名</view>
					<view>
						<u-icon name="arrow-right" color="#00A29A" size="28"></u-icon>
					</view>
				</view>
			</view>
		</view>
		<view class="kefuBtn mdx u-flex">
			<view>
				<u-icon name="kefu-ermai" color="#fff" size="38"></u-icon>
			</view>
			<view class="u-m-l-10">客服</view>
			<button type="default" open-type="contact" class="kefuZZ">客服</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataInfo: [],
				activiny: ''
			}
		},
		onLoad(option) {
			uni.getStorage({
				key: 'activeDetail',
				success: (e) => {
					this.dataInfo = e.data;
					this.activiny = e.data.contents || ''
					console.log(this.dataInfo);
				}
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.kefuBtn {
		border-radius: 10rpx;
		position: relative;
		position: fixed;
		bottom: 20rpx;
		text-align: center;
		line-height: 90rpx;
		background-color: #00A29A;
		color: #FFFFFF;
		font-size: 32rpx;
		justify-content: center;

		.kefuZZ {
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			opacity: 0;
		}
	}

	.titles {
		font-size: 40rpx;
		font-weight: 400;
		margin-bottom: 20rpx;


	}

	.act {
		padding: 25rpx;

		.act-biao {
			font-size: 40rpx;
			font-weight: 400;
			margin-bottom: 20rpx;
		}

		.act-flex {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			margin-bottom: 25rpx;

			.act-binding {
				width: 21rpx;
				height: 28rpx;
				margin-right: 15rpx;
			}

			label {
				font-size: 24rpx;
			}
		}

		.huo-time {
			width: 350rpx;
			border-top-left-radius: 20rpx;
			background: #00A29A;
			border-bottom-right-radius: 20rpx;
			color: #FFFFFF;
			padding: 3rpx 15rpx;
			margin-bottom: 68rpx;
		}

		.act-bot {
			margin-top: 60rpx;
			background-color: #FFFFFF;
			padding: 20rpx;
			box-shadow: 5rpx 5rpx 5rpx 5rpx #efefef;

			image {
				width: 180rpx;
				height: 180rpx;
				border-radius: 10rpx;
			}

			.act-bot-qian {
				display: flex;

				align-items: center;
				position: absolute;
				right: 0;
				bottom: 0;
				color: #00A29A;
			}

		}
	}

	.times {
		display: inline-block;
		border-radius: 20rpx 0 20rpx 0;
		background: #00A29A;
		padding: 3rpx 15rpx;
		color: #FFFFFF;
		font-size: 28rpx;
	}

	.introduction {
		padding-top: 30rpx;

	}

	.bmList {
		margin-top: 40rpx;
		padding: 20rpx;
		box-shadow: 0 0 10rpx #ddd;
	}

	.mdx {
		width: 92%;
		margin-left: 4%;
	}
</style>
